<div><canvas id="qrcode"></canvas></div>
<script src="/js/qr-code-with-logo.browser.min.js"></script>
<script type="text/javascript">    
QrCodeWithLogo.toCanvas({
    canvas: document.getElementById('qrcode'), // 换成你的canvas节点
    //content: window.location.href,
    content: {{ .Get 0}},
    width: 240
    //logo: {
      // src: 'https://gitee.com/iTouchTV/ipa/raw/feature/hugo/a_upload/com.touchtv.zijin/1.0.0/com.touchtv.zijin_1.0.0_201912061141_icon.png',
     // src: {{ .Get 0}},
    //}
  })

</script>